import request from '@/utils/request'

// 查询睡觉信息列表
export function listRing_sleep_info(query) {
  return request({
    url: '/ring/ring_sleep_info/list',
    method: 'get',
    params: query
  })
}

// 查询睡觉信息详细
export function getRing_sleep_info(id) {
  return request({
    url: '/ring/ring_sleep_info/' + id,
    method: 'get'
  })
}

// 新增睡觉信息
export function addRing_sleep_info(data) {
  return request({
    url: '/ring/ring_sleep_info',
    method: 'post',
    data: data
  })
}

// 修改睡觉信息
export function updateRing_sleep_info(data) {
  return request({
    url: '/ring/ring_sleep_info',
    method: 'put',
    data: data
  })
}

// 删除睡觉信息
export function delRing_sleep_info(id) {
  return request({
    url: '/ring/ring_sleep_info/' + id,
    method: 'delete'
  })
}
